<div class="panel panel-default panel-intro">
    {:build_heading()}

    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="one">
                <div class="widget-body no-padding">
                    <div id="toolbar" class="toolbar">
                        <a href="javascript:;" class="btn btn-success btn-res {:$auth->check('coll/anal/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('进销存')}</a>
                    </div>
                    <table id="table" class="table table-striped table-bordered table-hover table-nowrap"
                           data-operate-edit="{:$auth->check('coll/anal/edit')}" 
                           data-operate-del="{:$auth->check('coll/anal/del')}" 
                           width="100%">
                    </table>
                </div>
            </div>

        </div>
    </div>
</div>
<script>
    // openresults()
    function openresults(data){

        console.log(data)
        console.log(data.length)
        console.log(JSON.stringify(data))

        var url = Config.this_url+'/coll/summary/results?data='+JSON.stringify(data);
        console.log(url)
        // layer.open({
        //     type: 2, // 1-在content中写html代码， 2-在content中写src路径
        //     area: ['100%', '100%'],
        //     content: url
        // })
    }
</script>